﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainTemplate.Master" AutoEventWireup="true" CodeBehind="UserManagement.aspx.cs" Inherits="SmartCounters.UserManagement" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ScriptsAndStylesPlaceHolder" runat="server">
	<link rel="stylesheet" type="text/css" href="/css/UserManagement.css" />
	<script type="text/javascript" src="/Scripts/UserManagement.js"></script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="TitleContentPlaceHolder" runat="server">
Users Management
</asp:Content>

<asp:Content ID="UserManagement" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
<asp:UpdatePanel ID="UserManagementUpdatePanel" runat="server">
<ContentTemplate>
	<div>
		<asp:Button class="Button" ID="btNewUser" Text="New User" runat="server"  />
	</div>
	<asp:DataGrid 
		id="UsersGrid" 
		CssClass="DataTable"
		BorderStyle="None" 
		GridLines="None"
		UseAccessibleHeader="true" 
		AutoGenerateColumns="false"
		HeaderStyle-HorizontalAlign="Left" 
		onEditCommand="EditCommand"
		OnItemCommand="ItemCommand"
		runat="server">
                  
	<HeaderStyle CssClass="Header" />      
        
	<Columns>
		<asp:EditCommandColumn 
			ItemStyle-CssClass="Button InputFullWidth"
			HeaderText="Edit"
			ButtonType="PushButton" 
			EditText="Edit"
			HeaderStyle-Width="5%" />
		<asp:ButtonColumn 
			ItemStyle-CssClass="Button InputFullWidth"
			HeaderText="Delete" 
			ButtonType="PushButton" 
			Text="Delete" 
			CommandName="DeleteCommand"
			HeaderStyle-Width="5%">
		</asp:ButtonColumn>  
		<asp:BoundColumn HeaderText="ID" DataField="UserID" HeaderStyle-Width="5%" ReadOnly="true"  />
		<asp:BoundColumn HeaderText="Username" DataField="Username" HeaderStyle-Width="20%" />
		<asp:BoundColumn HeaderText="Permissions" DataField="Permissions" HeaderStyle-Width="10%" />
		<asp:BoundColumn HeaderText="Phone" DataField="Phone" HeaderStyle-Width="15%" />
		<asp:BoundColumn HeaderText="MobilePhone" DataField="MobilePhone" HeaderStyle-Width="15%" />
		<asp:BoundColumn HeaderText="Email" DataField="Email" HeaderStyle-Width="20%" />
		<asp:BoundColumn HeaderText="Password" DataField="Password" HeaderStyle-Width="5%" />
	</Columns>
	</asp:DataGrid>

</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
